package com.ems.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class RandomExamPaper {
    /*
    * 随机生成试卷试题类
    * */

    private Integer singleChoiceNumber;
    private Integer multipleChoiceNumber;
    private Integer subjectiveNumber;

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    @ToString
    public static class option{
        private Integer qaid;
        private Integer isRight;
        private String content;
        private String image;
    }

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    @ToString
    public static class singleChoice{
        private Integer qid;
        private Integer score;
        private String questionDescribe;
        private List<option> options;
    }

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    @ToString
    public static class multipleChoice{
        private Integer qid;
        private Integer score;
        private String questionDescribe;
        private List<option> options;
    }

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    @ToString
    public static class subjective{
        private Integer qid;
        private Integer score;
        private String questionDescribe;
    }
}
